Page({
  data: {
    students: [
      { id: 1, name: '张三', checked: false },
      { id: 2, name: '李四', checked: false }
    ],
    activeTab: 1
  },
  onCheck(e) {
    const id = e.currentTarget.dataset.id;
    const students = this.data.students.map(s => s.id === id ? { ...s, checked: !s.checked } : s);
    this.setData({ students });
  }
}); 